package org.example.trainTicketSystem.DTO;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class SaleRecordDTO {

    @NotNull(message = "票ID不能为空")
    @Positive(message = "票ID必须为正整数")
    private Integer ticketId;

    @NotNull(message = "用户ID不能为空")
    @Positive(message = "用户ID必须为正整数")
    private Integer userId;

    private String saleChannel;

}
